 const readdir = async (p) => {
     return new Promise((resolve) => {
         fs.readdir(p, (err, list) => {
             if (err) {
                 console.log("ERROR: fs.readdir: " + p);
                 resolve([]);
                 return;
             }
             resolve(list);
         });
     });
 }

 module.exports = readdir;